Skip to content

fix(ci): align pnpm version with lockfile for frozen install#24

Merged
yanglbme merged 1 commit into
mainfrom
fix/ci-pnpm-version
Jun 25, 2026
Merged

fix(ci): align pnpm version with lockfile for frozen install#24
yanglbme merged 1 commit into
mainfrom
fix/ci-pnpm-version

Conversation

@yanglbme

Copy link
Copy Markdown
Member

Summary

修复合并 #18Build and deploy workflow 失败的问题。

根因: CI 使用 pnpm 9,而 lockfile 由 pnpm 11 生成(overrides 配置在 pnpm-workspace.yaml 中)。执行 pnpm install --frozen-lockfile 时触发 ERR_PNPM_LOCKFILE_CONFIG_MISMATCH。

修复:

  • 在 package.json 中声明 packageManager: pnpm@11.9.0
  • deploy.yml 中移除 pnpm 9 版本锁定,由 pnpm/action-setup 自动读取 packageManager 字段

Test plan

  • pnpm install --frozen-lockfile — 通过
  • pnpm run docs:build — 构建成功

Made with Cursor

CI used pnpm 9 while the lockfile was generated with pnpm 11 (overrides in pnpm-workspace.yaml), causing ERR_PNPM_LOCKFILE_CONFIG_MISMATCH on deploy.

Co-authored-by: Cursor <cursoragent@cursor.com>
Copilot AI review requested due to automatic review settings June 25, 2026 10:59

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@yanglbme yanglbme merged commit a0a6264 into main Jun 25, 2026
1 check passed
@yanglbme yanglbme deleted the fix/ci-pnpm-version branch June 25, 2026 11:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants